<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Banners'); ?></div>
    <h2>Banners</h2>
    <p>A banner is the content (called a creative in Revive Adserver) and the associated properties that make up an on-line advertisement. A banner is what the visitors to a website will see displayed to then as the "ad", and be able to click on or interact with in some way. A banner's creative can be a static image, some HTML code, a Flash banner, text or a video ad.</p>
    
    <div class="entry">
        <div class="sep"></div>
    </div>
    <table>
        <thead>
            <tr>
            	<th scope="col" class="chb"><input type="checkbox" onclick="selectAll(this);"></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Name');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Code');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Description');?></th>
                <th scope="col"><?php  echo Yii::t('AdmincpModule.admincp', 'Status');?></th>
            </tr>
        </thead>
            
        <tbody>
        
        <?php if(!empty($arrBanners)):?>
			<?php foreach($arrBanners as $i=>$R):?>
            <tr>
                <td class="align-center"><input type="checkbox"></td>
                <td>
					<strong><a href="javascript:void(0);" style="text-decoration:none;"><?php echo $R['banner_name']; ?></a></strong>
                    <p style="margin:0; padding: 2px 0 0;">
                        <a href="<?php echo LINK_ADMINCP_ADVERTISEMENTS.'/updateBanner/?campaign='.$R['campaign_id'].'&id='.$R['banner_id']; ?>"  title="Edit">Edit</a> | 
                        <a href="<?php echo LINK_ADMINCP_ADVERTISEMENTS.'/deleteBanner/?campaign='.$R['campaign_id'].'&id='.$R['banner_id']; ?>" title="Delete">Delete</a> 
                    </p>
                </td>
                <td><?php echo $R['banner_link']; ?></td>
                <td><?php echo $R['banner_description']; ?></td>
                <td><?php echo $R['banner_status']; ?></td>
            </tr>
            <?php endforeach; ?>
		<?php else: ?>
            <tr>
                <td colspan="7">No data found!</td>
            </tr>
        <?php endif; ?>
        </tbody>
    </table>
    <div class="entry">
        <?php $this->widget('Pagination', array(
			'pages' => $objPages,
		)) ?>
        <div class="sep"></div>		
        <a class="button add" href="<?php echo LINK_ADMINCP_ADVERTISEMENTS.'/updateBanner/?campaign='.$intCampaignId; ?>"><?php echo Yii::t('AdmincpModule.admincp', 'Add Banner'); ?></a> 
    </div>
</div>